//
//  QTHomeGuessCell.m
//  QTLifeCircle
//
//  Created by 王琼 on 17/1/15.
//  Copyright © 2017年 徐腾. All rights reserved.
//

#import "QTHomeGuessCell.h"
#import <UIImageView+WebCache.h>

@interface QTHomeGuessCell()

@property (weak, nonatomic) IBOutlet UIImageView *coverView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *introLabel;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;


@end

@implementation QTHomeGuessCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


-(void)setGuessModel:(QTGuessModel *)guessModel
{
    _guessModel = guessModel;
    NSURL* URL = [NSURL URLWithString:guessModel.cover];
    [self.coverView sd_setImageWithURL:URL placeholderImage:[UIImage imageNamed:@"no"]];
    self.titleLabel.text = guessModel.title;
    self.introLabel.text = guessModel.intro;
    self.priceLabel.text = guessModel.price;
    
  }
@end
